package com.moody.hibernate.domain;



/**
 * CodeLibId entity. @author MyEclipse Persistence Tools
 */

@SuppressWarnings("serial")
public class CodeLibId  implements java.io.Serializable {


    // Fields    

     private String codeNo;
     private String itemNo;


    // Constructors

    /** default constructor */
    public CodeLibId() {
    }

    
    /** full constructor */
    public CodeLibId(String codeNo, String itemNo) {
        this.codeNo = codeNo;
        this.itemNo = itemNo;
    }

   
    // Property accessors

    public String getCodeNo() {
        return this.codeNo;
    }
    
    public void setCodeNo(String codeNo) {
        this.codeNo = codeNo;
    }

    public String getItemNo() {
        return this.itemNo;
    }
    
    public void setItemNo(String itemNo) {
        this.itemNo = itemNo;
    }
   



   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof CodeLibId) ) return false;
		 CodeLibId castOther = ( CodeLibId ) other; 
         
		 return ( (this.getCodeNo()==castOther.getCodeNo()) || ( this.getCodeNo()!=null && castOther.getCodeNo()!=null && this.getCodeNo().equals(castOther.getCodeNo()) ) )
 && ( (this.getItemNo()==castOther.getItemNo()) || ( this.getItemNo()!=null && castOther.getItemNo()!=null && this.getItemNo().equals(castOther.getItemNo()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getCodeNo() == null ? 0 : this.getCodeNo().hashCode() );
         result = 37 * result + ( getItemNo() == null ? 0 : this.getItemNo().hashCode() );
         return result;
   }   





}